<?php
require_once('../proj/classes/Student.php');

$student = new Student;
?>

<div id="content">
<h2>Admin List</h2>
<table border=1 style="margin-left: 50px" width=400px>
    <tr>
        <th>Last Name</th>
        <th>First Name</th>
        <th>Gender</th>
    </tr>
    
    <?php
     
    $ctr = 0;
    $student_rec = $student->getAdmin();
    
    if($student_rec != 0){
        for($x=0;$x<count($student_rec);$x++){
            echo "<tr>";
            echo "<td>".$student_rec[$x]['lname']."</td>";
            echo "<td>".$student_rec[$x]['fname']."</td>";
            echo "<td>".$student_rec[$x]['gender']."</td>";
        }
    }
?>
    